W32: Make combobox-entry thinner by removing unneeded padding
authorРуслан Ижбулатов <lrn1986@gmail.com>
Wed, 26 Mar 2014 06:54:52 +0000 (06:54 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Tue, 1 Apr 2014 10:32:50 +0000 (10:32 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=727075

gtk/resources/theme/gtk-win32-base.css

index 6d7d400cbd14b65021222ad3d0ca4bab1f225164..dea84db61105e426498bdc9e4c9a6065544b16f9 100644 (file)
@@ -720,6 +720,13 @@ GtkComboBox.combobox-entry .button {
     border-width: 0;
     background-image: -gtk-win32-theme-part(combobox, 1 1);
     color: rgba(0, 0, 0, 0);
+/* Remove padding from combobox button (GtkArrow inside of it is hardcoded to be
+   16x16, but we draw even smaller arrow instead, so padding is completely unnecessary,
+   it only makes the button bigger for not good reason).
+   Only do this for combobox-entry, because non-entry combobox IS the button,
+   and it does need to be as thick as the items of the list it pops up (and it's
+   still slimmer than padded combobox-entry!). */
+    padding: 0px;
 }
 
 GtkComboBox.combobox-entry .button:prelight,